<template>
	<view class="mainbgc">
		<view class="mainpadding">
			<template v-if="personInfo.usersmrz.smrz_status==1">
				<!-- 审核中 -->
				<view class="icon">
					<image src="@/static/image/sysem/check.png" mode=""></image>
				</view>
				<view class="textcenter huisetext nav">
					<view class="">工作人员将会在3个工作日内审核您的提交，</view>
				        <view class=""> 审核后平台将会给您反馈~，</view>
				            <view class="">请留意此界面！</view>
					</view>
			</template>
			<template v-if="personInfo.usersmrz.smrz_status==2">
				<!-- 审核通过 -->
				<view class="icon">
					<image src="@/static/image/sysem/pass.png" mode=""></image>
				</view>
				<view class="block2 nav ">
					<view class=" textcenter huisetext">恭喜您，您已经通过审核！</view>
				</view>
				<view class="mainpadding ffffff radius nav" >
					<view class="hei_text bold main_size">备注：{{personInfo.usersmrz.notes}}</view>
				</view>
			</template>
			<template v-if="personInfo.usersmrz.smrz_status==3">
				<!-- 审核不通过 -->
				<view class="icon">
					<image src="@/static/image/sysem/no_pass.png" mode=""></image>
				</view>
				<view class="block3 nav">
					<view class="textcenter huisetext">很遗憾，您没有通过审核!</view>
					<view class="flexcenter">
						<view class="huisetext">如有疑问？</view>
						<view class="chengsetext" @click="phone(kf_mobile)">联系客服</view>
					</view>
					<view class="mainpadding ffffff radius nav" >
						<view class="hei_text bold main_size">备注：{{personInfo.usersmrz.notes}}!</view>
					</view>
				</view>
			</template>
		</view>
		<view v-if="personInfo.usersmrz.smrz_status==3" class="gudingdb mainpadding" @click="jumpurl">
			<view class="bigbtn" >重新提交</view>
		</view>
	</view>
</template>

<script>
const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				kf_mobile: "",
				personInfo: {
			 
				},
			}
		},
		onShow() {
			this.init()
			this.getphone()
		},
		methods: {
			init() {
				httpRequest.request('/api/user/index', 'GET', {}, false, false, true).then(res => {
					if (res.code == 1) {
						this.personInfo = res.data
					}
				}).catch(err => {
					httpRequest.toast(err.msg);
				})
			},
			getphone() {
				httpRequest.request('/api/index/getConfigInfo', 'GET', {}, false, false, true).then(res => {
					if (res.code == 1) {
						this.kf_mobile = res.data.kf_mobile
					}
				}).catch(err => {
					httpRequest.toast(err.msg);
				})
			},
			phone(p) {
				uni.makePhoneCall({
					phoneNumber: p.toString()
				}).catch((e) => {
					// console.log(e)  //用catch(e)来捕获错误{makePhoneCall:fail cancel}
				})
			},
			jumpurl(){
				uni.redirectTo({
					url: '/pages/mypage/shimingrenz'
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.nav{
		margin-top:50rpx;
	}
	.dianhua {
		font-size: 32rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #FFFFFF;
	}

	.chengsetext {
		font-size: 28rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color:#359bff;
	}

	.heisetext {
		font-size: 28rpx;
		font-family: PingFang SC-Heavy, PingFang SC;
		font-weight: 800;
		color: #000000;
	}

	.huisetext {
		font-size: 28rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #999999;
	}

	.icon {
		margin: 30rpx auto 0;
		width: 274rpx;
		height: 274rpx;

		image {
			width: 100%;
			height: 100%;
		}
	}
 
	.eshiliu {
		font-size: 26rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #666666;
	}

	.erwm {
		width: 243rpx;
		height: 243rpx;
		margin: 30rpx auto 0;

		image {
			width: 100%;
			height: 100%;
		}
	}

	.neijianju {
		padding: 0 130rpx;
	}

	.tkbox {
		padding-bottom: 60rpx;
	}
 
</style>
